package com.jic.order.model.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
public class OrderBaleModel implements Serializable {

    private long id;
    //包裹编号
    private String baleNo;
    //交货单号
    private String deliverNo;
    //订单号
    private String orderNo;
    //冗余-商户ID
    private long merchantId;
    //冗余-商户名称
    private String merchantName;
    //冗余-店铺ID
    private long storeId;
    //冗余-店铺名称
    private String storeName;
    //包裹状态，已发货、已送达
    private Integer orderStatus;
    //配送商，EMS、韵达快递
    private Integer distributor;
    //快递单号
    private String expressNo;

    //收货人省id
    private long receiverProvinceId;
    //收货人省名称
    private String receiverProvinceName;
    //收货人市id
    private long receiverCityId;
    //收货人市名称
    private String receiverCityName;
    //收货人区/县id
    private long receiverCountryId;
    //收货人区/县名称
    private String receiverRegionName;
    //收货人名字
    private String receiverName;
    //收货人电话
    private String receiverPhone;
    //收货人详细地址
    private String receiverAddress;
    //版本号
    private long version;
    //包裹明细，主要记录商品信息
    private List<OrderBaleDetailModel> orderBaleDetailModelList;


    @Data
    public static class OrderBaleDetailModel implements Serializable{
        private long id;
        private String baleNo;
        private long goodsId;
        private String goodsName;
        private Integer goodsNum;
        private long version;
    }

}
